﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000161 RID: 353
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BuyGoodsCsReq : IMessage<BuyGoodsCsReq>, IMessage, IEquatable<BuyGoodsCsReq>, IDeepCloneable<BuyGoodsCsReq>, IBufferMessage
	{
		// Token: 0x170004B6 RID: 1206
		// (get) Token: 0x06000FF1 RID: 4081 RVA: 0x0002EE8D File Offset: 0x0002D08D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BuyGoodsCsReq> Parser
		{
			get
			{
				return BuyGoodsCsReq._parser;
			}
		}

		// Token: 0x170004B7 RID: 1207
		// (get) Token: 0x06000FF2 RID: 4082 RVA: 0x0002EE94 File Offset: 0x0002D094
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BuyGoodsCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170004B8 RID: 1208
		// (get) Token: 0x06000FF3 RID: 4083 RVA: 0x0002EEA6 File Offset: 0x0002D0A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BuyGoodsCsReq.Descriptor;
			}
		}

		// Token: 0x06000FF4 RID: 4084 RVA: 0x0002EEAD File Offset: 0x0002D0AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyGoodsCsReq()
		{
		}

		// Token: 0x06000FF5 RID: 4085 RVA: 0x0002EEB8 File Offset: 0x0002D0B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyGoodsCsReq(BuyGoodsCsReq other) : this()
		{
			this.monsterId_ = other.monsterId_;
			this.goodsNum_ = other.goodsNum_;
			this.goodsId_ = other.goodsId_;
			this.itemId_ = other.itemId_;
			this.shopId_ = other.shopId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000FF6 RID: 4086 RVA: 0x0002EF18 File Offset: 0x0002D118
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyGoodsCsReq Clone()
		{
			return new BuyGoodsCsReq(this);
		}

		// Token: 0x170004B9 RID: 1209
		// (get) Token: 0x06000FF7 RID: 4087 RVA: 0x0002EF20 File Offset: 0x0002D120
		// (set) Token: 0x06000FF8 RID: 4088 RVA: 0x0002EF28 File Offset: 0x0002D128
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x170004BA RID: 1210
		// (get) Token: 0x06000FF9 RID: 4089 RVA: 0x0002EF31 File Offset: 0x0002D131
		// (set) Token: 0x06000FFA RID: 4090 RVA: 0x0002EF39 File Offset: 0x0002D139
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GoodsNum
		{
			get
			{
				return this.goodsNum_;
			}
			set
			{
				this.goodsNum_ = value;
			}
		}

		// Token: 0x170004BB RID: 1211
		// (get) Token: 0x06000FFB RID: 4091 RVA: 0x0002EF42 File Offset: 0x0002D142
		// (set) Token: 0x06000FFC RID: 4092 RVA: 0x0002EF4A File Offset: 0x0002D14A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GoodsId
		{
			get
			{
				return this.goodsId_;
			}
			set
			{
				this.goodsId_ = value;
			}
		}

		// Token: 0x170004BC RID: 1212
		// (get) Token: 0x06000FFD RID: 4093 RVA: 0x0002EF53 File Offset: 0x0002D153
		// (set) Token: 0x06000FFE RID: 4094 RVA: 0x0002EF5B File Offset: 0x0002D15B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x170004BD RID: 1213
		// (get) Token: 0x06000FFF RID: 4095 RVA: 0x0002EF64 File Offset: 0x0002D164
		// (set) Token: 0x06001000 RID: 4096 RVA: 0x0002EF6C File Offset: 0x0002D16C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ShopId
		{
			get
			{
				return this.shopId_;
			}
			set
			{
				this.shopId_ = value;
			}
		}

		// Token: 0x06001001 RID: 4097 RVA: 0x0002EF75 File Offset: 0x0002D175
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BuyGoodsCsReq);
		}

		// Token: 0x06001002 RID: 4098 RVA: 0x0002EF84 File Offset: 0x0002D184
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BuyGoodsCsReq other)
		{
			return other != null && (other == this || (this.MonsterId == other.MonsterId && this.GoodsNum == other.GoodsNum && this.GoodsId == other.GoodsId && this.ItemId == other.ItemId && this.ShopId == other.ShopId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001003 RID: 4099 RVA: 0x0002F000 File Offset: 0x0002D200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			if (this.GoodsNum != 0U)
			{
				num ^= this.GoodsNum.GetHashCode();
			}
			if (this.GoodsId != 0U)
			{
				num ^= this.GoodsId.GetHashCode();
			}
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this.ShopId != 0U)
			{
				num ^= this.ShopId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001004 RID: 4100 RVA: 0x0002F0A3 File Offset: 0x0002D2A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001005 RID: 4101 RVA: 0x0002F0AB File Offset: 0x0002D2AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001006 RID: 4102 RVA: 0x0002F0B4 File Offset: 0x0002D2B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.MonsterId);
			}
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.ItemId);
			}
			if (this.ShopId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.ShopId);
			}
			if (this.GoodsId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.GoodsId);
			}
			if (this.GoodsNum != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.GoodsNum);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001007 RID: 4103 RVA: 0x0002F164 File Offset: 0x0002D364
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			if (this.GoodsNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GoodsNum);
			}
			if (this.GoodsId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GoodsId);
			}
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this.ShopId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ShopId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001008 RID: 4104 RVA: 0x0002F204 File Offset: 0x0002D404
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BuyGoodsCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			if (other.GoodsNum != 0U)
			{
				this.GoodsNum = other.GoodsNum;
			}
			if (other.GoodsId != 0U)
			{
				this.GoodsId = other.GoodsId;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			if (other.ShopId != 0U)
			{
				this.ShopId = other.ShopId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001009 RID: 4105 RVA: 0x0002F290 File Offset: 0x0002D490
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600100A RID: 4106 RVA: 0x0002F29C File Offset: 0x0002D49C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 16U)
					{
						this.MonsterId = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.ItemId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.ShopId = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.GoodsId = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.GoodsNum = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040006C4 RID: 1732
		private static readonly MessageParser<BuyGoodsCsReq> _parser = new MessageParser<BuyGoodsCsReq>(() => new BuyGoodsCsReq());

		// Token: 0x040006C5 RID: 1733
		private UnknownFieldSet _unknownFields;

		// Token: 0x040006C6 RID: 1734
		public const int MonsterIdFieldNumber = 2;

		// Token: 0x040006C7 RID: 1735
		private uint monsterId_;

		// Token: 0x040006C8 RID: 1736
		public const int GoodsNumFieldNumber = 15;

		// Token: 0x040006C9 RID: 1737
		private uint goodsNum_;

		// Token: 0x040006CA RID: 1738
		public const int GoodsIdFieldNumber = 14;

		// Token: 0x040006CB RID: 1739
		private uint goodsId_;

		// Token: 0x040006CC RID: 1740
		public const int ItemIdFieldNumber = 9;

		// Token: 0x040006CD RID: 1741
		private uint itemId_;

		// Token: 0x040006CE RID: 1742
		public const int ShopIdFieldNumber = 13;

		// Token: 0x040006CF RID: 1743
		private uint shopId_;
	}
}
